package com.qf.service.dingdan_service;

import com.qf.bean.Order;
import com.qf.dao.dingdan_dao.OrderMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;

import java.sql.Date;
import java.util.List;

@Service
public class OrderServiceImpl implements OrderService {
    @Autowired
    private OrderMapper dao;

    public List<Order> findAll(Integer oid){
        return dao.findAll(oid);
    }

    @Override
    public List<Order> findByTime(Date begin) {
        return dao.findByTime(begin);
    }

    @Override
    public Order findById(Integer oid) {
        return dao.findById(oid);
    }
}
